import java.util.Scanner;

public class L4 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入商品价格：");
        int price = in.nextInt();
         Scanner sc=new Scanner(System.in);
        System.out.println("亲，要包邮吗：");
        String answer = sc.nextLine();
        if (answer.equals("yes")) {
            int a=20;
            System.out.println( a+ price+"(总价格)");
        } else {
            if (answer.equals("no")) {
                System.out.println(price+"(总价格)" );
            } else {
                System.out.println("输入错误，请输入：yes或者no。");
            }
        }
        System.out.println("程序结束，祝你购物愉快。");
    }
}
